package com.android.hidephotosplus.model;

import android.os.Parcel;
import android.os.Parcelable;

public class ModelAlbum implements Parcelable {

	public long idAlbum;

	public String nameAlbum;

	public String pathAlbum;

	public boolean isChecked = false;

	public int numberMedia;

	public ModelMediaOfAlbum mediaOfAlbum;

	public ModelMediaOfAlbum getMediaOfAlbum() {
		return mediaOfAlbum;
	}

	public void setMediaOfAlbum(ModelMediaOfAlbum mediaOfAlbum) {
		this.mediaOfAlbum = mediaOfAlbum;
	}

	public ModelAlbum() {
	}

	public boolean isChecked() {
		return isChecked;
	}

	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}

	public long getIdAlbum() {
		return idAlbum;
	}

	public void setIdAlbum(long idAlbum) {
		this.idAlbum = idAlbum;
	}

	public String getNameAlbum() {
		return nameAlbum;
	}

	public void setNameAlbum(String nameAlbum) {
		this.nameAlbum = nameAlbum;
	}

	public int getNumberMedia() {
		return numberMedia;
	}

	public void setNumberMedia(int numberMedia) {
		this.numberMedia = numberMedia;
	}


	public String getPathAlbum() {
		return pathAlbum;
	}

	public void setPathAlbum(String pathAlbum) {
		this.pathAlbum = pathAlbum;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(idAlbum);
		dest.writeString(nameAlbum);
		dest.writeString(pathAlbum);
	}

	public ModelAlbum(Parcel parcel) {
		idAlbum = parcel.readLong();
		nameAlbum = parcel.readString();
		pathAlbum = parcel.readString();
	}

	public static final Parcelable.Creator<ModelAlbum> CREATOR = new Parcelable.Creator<ModelAlbum>() {
		@Override
		public ModelAlbum createFromParcel(Parcel source) {
			return new ModelAlbum(source);
		}
		@Override
		public ModelAlbum[] newArray(int size) {
			return new ModelAlbum[size];
		}
	};

}
